<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>README - rake: Ruby Standard Library Documentation</title>


<script src="../js/navigation.js" defer></script>
<script src="../js/search.js" defer></script>
<script src="../js/search_index.js" defer></script>
<script src="../js/searcher.js" defer></script>
<script src="../js/darkfish.js" defer></script>

<script src="../js/jquery-3.2.0.min.js"></script>

<script src="../js/vue.min.js"></script>
<script src="../js/js.cookie.min.js"></script>

<link href="../css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="../css/rdoc.css" rel="stylesheet">
<link href="../css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "../";
  var index_rel_prefix = "../";
  var darkModeCsseHref = "../css/rdoc-dm.css"
  var defaultModeCssHref = "../css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="file">
  <!-- this is page.html -->
  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->


 <div class='wrapper hdiv'>

 


<nav id='vapp' role="navigation">
  <div id="project-navigation">
    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="../index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="../table_of_contents.html#pages">Pages</a>
    <a href="../table_of_contents.html#classes">Classes</a>
    <a href="../table_of_contents.html#methods">Methods</a>
  </div>
</div>

    <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

  </div>

  
<div class="nav-section">
  <h3>Table of Contents</h3>

  <ul class="link-list" role="directory">
    <li><a href="#label-RAKE+--+Ruby+Make">RAKE – Ruby Make</a>
    <li><a href="#label-Description">Description</a>
    <li><a href="#label-Installation">Installation</a>
    <li><a href="#label-Gem+Installation">Gem Installation</a>
    <li><a href="#label-Usage">Usage</a>
    <li><a href="#label-Simple+Example">Simple Example</a>
    <li><a href="#label-Resources">Resources</a>
    <li><a href="#label-Rake+Information">Rake Information</a>
    <li><a href="#label-Presentations+and+Articles+about+Rake">Presentations and Articles about Rake</a>
    <li><a href="#label-Other+Make+Re-envisionings+...">Other Make Re-envisionings …</a>
    <li><a href="#label-Credits">Credits</a>
    <li><a href="#label-License">License</a>
    <li><a href="#label-Other+stuff">Other stuff</a>
    <li><a href="#label-Warranty">Warranty</a>
    <li><a href="#label-Historical">Historical</a>
  </ul>
</div>

  <button id='toggleThing' @click="toggleNav()" >Show/hide navigation</button>

  <div id="project-metadata">
   <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
    
<div id="fileindex-section" class="nav-section">
  <h3>Pages</h3>

  <ul class="link-list">
    <li><a href="../rake-13_0_6/History_rdoc.html">History</a>
    <li><a href="../rake-13_0_6/README_rdoc.html">README</a>
    <li><a href="../rake-13_0_6/doc/command_line_usage_rdoc.html">command_line_usage</a>
    <li><a href="../rake-13_0_6/doc/glossary_rdoc.html">glossary</a>
    <li><a href="../rake-13_0_6/doc/proto_rake_rdoc.html">proto_rake</a>
    <li><a href="../rake-13_0_6/doc/rakefile_rdoc.html">rakefile</a>
    <li><a href="../rake-13_0_6/doc/rational_rdoc.html">rational</a>
  </ul>
</div>

   </div>
  </div>
</nav>


<!--  carbon ads here -->

<div id='extraz'>
  <div class='adzbox-index'  >
   
  </div>
 </div>         


<main role="main" aria-label="Page rake-13.0.6/README.rdoc">

<h1 id="label-RAKE+--+Ruby+Make">RAKE – Ruby Make<span><a href="#label-RAKE+--+Ruby+Make">&para;</a> <a href="#top">&uarr;</a></span></h1>
<dl class="rdoc-list note-list"><dt>home 
<dd>
<p><a href="https://github.com/ruby/rake">github.com/ruby/rake</a></p>
</dd><dt>bugs 
<dd>
<p><a href="https://github.com/ruby/rake/issues">github.com/ruby/rake/issues</a></p>
</dd><dt>docs 
<dd>
<p><a href="https://ruby.github.io/rake">ruby.github.io/rake</a></p>
</dd></dl>

<h2 id="label-Description">Description<span><a href="#label-Description">&para;</a> <a href="#top">&uarr;</a></span></h2>

<p>Rake is a Make-like program implemented in Ruby. Tasks and dependencies are specified in standard Ruby syntax.</p>

<p>Rake has the following features:</p>
<ul><li>
<p>Rakefiles (rake’s version of Makefiles) are completely defined in standard Ruby syntax.  No XML files to edit.  No quirky Makefile syntax to worry about (is that a tab or a space?)</p>
</li><li>
<p>Users can specify tasks with prerequisites.</p>
</li><li>
<p>Rake supports rule patterns to synthesize implicit tasks.</p>
</li><li>
<p>Flexible FileLists that act like arrays but know about manipulating file names and paths.</p>
</li><li>
<p>A library of prepackaged tasks to make building rakefiles easier. For example, tasks for building tarballs. (Formerly tasks for building <a href="../RDoc.html"><code>RDoc</code></a>, Gems, and publishing to FTP were included in rake but they’re now available in <a href="../RDoc.html"><code>RDoc</code></a>, RubyGems, and rake-contrib respectively.)</p>
</li><li>
<p>Supports parallel execution of tasks.</p>
</li></ul>

<h2 id="label-Installation">Installation<span><a href="#label-Installation">&para;</a> <a href="#top">&uarr;</a></span></h2>

<h3 id="label-Gem+Installation">Gem Installation<span><a href="#label-Gem+Installation">&para;</a> <a href="#top">&uarr;</a></span></h3>

<p>Download and install rake with the following.</p>

<pre class="ruby"><span class="ruby-identifier">gem</span> <span class="ruby-identifier">install</span> <span class="ruby-identifier">rake</span>
</pre>

<h2 id="label-Usage">Usage<span><a href="#label-Usage">&para;</a> <a href="#top">&uarr;</a></span></h2>

<h3 id="label-Simple+Example">Simple Example<span><a href="#label-Simple+Example">&para;</a> <a href="#top">&uarr;</a></span></h3>

<p>First, you must write a “Rakefile” file which contains the build rules. Here’s a simple example:</p>

<pre class="ruby"><span class="ruby-identifier">task</span> <span class="ruby-value">default:</span> <span class="ruby-node">%w[test]</span>

<span class="ruby-identifier">task</span> <span class="ruby-value">:test</span> <span class="ruby-keyword">do</span>
  <span class="ruby-identifier">ruby</span> <span class="ruby-string">&quot;test/unittest.rb&quot;</span>
<span class="ruby-keyword">end</span>
</pre>

<p>This Rakefile has two tasks:</p>
<ul><li>
<p>A task named “test”, which – upon invocation – will run a unit test file in Ruby.</p>
</li><li>
<p>A task named “default”. This task does nothing by itself, but it has exactly one dependency, namely the “test” task. Invoking the “default” task will cause Rake to invoke the “test” task as well.</p>
</li></ul>

<p>Running the “rake” command without any options will cause it to run the “default” task in the Rakefile:</p>

<pre>% ls
Rakefile     test/
% rake
(in /home/some_user/Projects/rake)
ruby test/unittest.rb
....unit test output here...</pre>

<p>Type “rake –help” for all available options.</p>

<h2 id="label-Resources">Resources<span><a href="#label-Resources">&para;</a> <a href="#top">&uarr;</a></span></h2>

<h3 id="label-Rake+Information">Rake Information<span><a href="#label-Rake+Information">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p><a href="../doc/command_line_usage.rdoc">Rake command-line</a></p>
</li><li>
<p><a href="../doc/rakefile.rdoc">Writing Rakefiles</a></p>
</li><li>
<p>The original <a href="../doc/rational.rdoc">Rake announcement</a></p>
</li><li>
<p>Rake <a href="../doc/glossary.rdoc">glossary</a></p>
</li></ul>

<h3 id="label-Presentations+and+Articles+about+Rake">Presentations and Articles about Rake<span><a href="#label-Presentations+and+Articles+about+Rake">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>Avdi Grimm’s rake series:</p>
<ol><li>
<p><a href="https://avdi.codes/rake-part-1-basics/">Rake Basics</a></p>
</li><li>
<p><a href="https://avdi.codes/rake-part-2-file-lists-2/">Rake File Lists</a></p>
</li><li>
<p><a href="https://avdi.codes/rake-part-3-rules/">Rake Rules</a></p>
</li><li>
<p><a href="https://avdi.codes/rake-part-4-pathmap/">Rake Pathmap</a></p>
</li><li>
<p><a href="https://avdi.codes/rake-part-5-file-operations/">File Operations</a></p>
</li><li>
<p><a href="https://avdi.codes/rake-part-6-clean-and-clobber/">Clean and Clobber</a></p>
</li><li>
<p><a href="https://avdi.codes/rake-part-7-multitask/">MultiTask</a></p>
</li></ol>
</li><li>
<p><a href="https://web.archive.org/web/20140221123354/http://onestepback.org/articles/buildingwithrake/">Jim Weirich’s 2003 RubyConf presentation</a></p>
</li><li>
<p>Martin Fowler’s article on Rake: <a href="https://martinfowler.com/articles/rake.html">martinfowler.com/articles/rake.html</a></p>
</li></ul>

<h2 id="label-Other+Make+Re-envisionings+...">Other Make Re-envisionings …<span><a href="#label-Other+Make+Re-envisionings+...">&para;</a> <a href="#top">&uarr;</a></span></h2>

<p>Rake is a late entry in the make replacement field.  Here are links to other projects with similar (and not so similar) goals.</p>
<ul><li>
<p><a href="https://directory.fsf.org/wiki/Bras">directory.fsf.org/wiki/Bras</a> – Bras, one of earliest implementations of “make in a scripting language”.</p>
</li><li>
<p><a href="http://www.a-a-p.org">www.a-a-p.org</a> – Make in Python</p>
</li><li>
<p><a href="https://ant.apache.org">ant.apache.org</a> – The Ant project</p>
</li><li>
<p><a href="https://search.cpan.org/search?query=PerlBuildSystem">search.cpan.org/search?query=PerlBuildSystem</a> – The Perl Build System</p>
</li><li>
<p><a href="https://www.rubydoc.info/gems/rant/0.5.7/frames">www.rubydoc.info/gems/rant/0.5.7/frames</a> – Rant, another Ruby make tool.</p>
</li></ul>

<h2 id="label-Credits">Credits<span><a href="#label-Credits">&para;</a> <a href="#top">&uarr;</a></span></h2>
<dl class="rdoc-list label-list"><dt><strong>Jim Weirich</strong>
<dd>
<p>Who originally created Rake.</p>
</dd><dt><strong>Ryan Dlugosz</strong>
<dd>
<p>For the initial conversation that sparked Rake.</p>
</dd><dt><strong>Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;</strong>
<dd>
<p>For the initial patch for rule support.</p>
</dd><dt><strong>Tilman Sauerbeck &lt;tilman@code-monkey.de&gt;</strong>
<dd>
<p>For the recursive rule patch.</p>
</dd><dt><strong>Eric Hodel</strong>
<dd>
<p>For aid in maintaining rake.</p>
</dd><dt><strong>Hiroshi SHIBATA</strong>
<dd>
<p>Maintainer of Rake 10.X and Rake 11.X</p>
</dd></dl>

<h2 id="label-License">License<span><a href="#label-License">&para;</a> <a href="#top">&uarr;</a></span></h2>

<p>Rake is available under an MIT-style license.</p>

<p>Copyright © Jim Weirich</p>

<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>

<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>

<p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
<hr>

<h1 id="label-Other+stuff">Other stuff<span><a href="#label-Other+stuff">&para;</a> <a href="#top">&uarr;</a></span></h1>
<dl class="rdoc-list note-list"><dt>Author
<dd>
<p>Jim Weirich &lt;jim.weirich@gmail.com&gt;</p>
</dd><dt>Requires
<dd>
<p>Ruby 2.0.0 or later</p>
</dd><dt>License
<dd>
<p>Copyright Jim Weirich. Released under an MIT-style license.  See the MIT-LICENSE file included in the distribution.</p>
</dd></dl>

<h2 id="label-Warranty">Warranty<span><a href="#label-Warranty">&para;</a> <a href="#top">&uarr;</a></span></h2>

<p>This software is provided “as is” and without any express or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose.</p>

<h2 id="label-Historical">Historical<span><a href="#label-Historical">&para;</a> <a href="#top">&uarr;</a></span></h2>

<p>Rake was originally created by Jim Weirich, who unfortunately passed away in February 2014. This repository was originally hosted at <a href="https://github.com/jimweirich/rake/">github.com/jimweirich/rake</a>, however with his passing, has been moved to <a href="https://github.com/ruby/rake">ruby/rake</a>.</p>

<p>You can view Jim’s last commit here: <a href="https://github.com/jimweirich/rake/tree/336559f28f55bce418e2ebcc0a57548dcbac4025">github.com/jimweirich/rake/tree/336559f28f55bce418e2ebcc0a57548dcbac4025</a></p>

<p>You can <a href="https://en.wikipedia.org/wiki/Jim_Weirich">read more about Jim</a> at Wikipedia.</p>

<p>Thank you for this great tool, Jim. We’ll remember you.</p>

</main>

</div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>.</p><p><a href="https://jamesbritt.bandcamp.com/">Maximum R+D</a>.  </p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

